/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-03-24
 * Time: 21:19
 */
// USB 鼠标类
public class Mouse implements IUSB {
    @Override
    public void openDevice() {
        System.out.println("打开鼠标");
    }

    @Override
    public void work() {  // 鼠标的核心功能
        click();
    }

    private void click() {  // 鼠标特有方法
        System.out.println("鼠标点击操作...");
    }

    @Override
    public void closeDevice() {
        System.out.println("关闭鼠标");
    }
}
